package com.my.demo.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.validation.annotation.Validated;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Validated

@TableName("usermsg")
//用户类
public class User {
  @TableField("userId")
  private Integer userId;
  private String userName;
  private String password;
  private String userType;
  private String salt;

  public User(String userName, String password, String userType) {
    this.userName = userName;
    this.password = password;
    this.userType = userType;

  }
}
